package jp.ddo.trismegistos.action.impl.regist;

import jp.ddo.trismegistos.RsStatics;
import jp.ddo.trismegistos.action.impl.AbstractAction;
import jp.ddo.trismegistos.bean.User;
import jp.ddo.trismegistos.bean.UserInfo;
import jp.ddo.trismegistos.exception.RsException;

import org.apache.log4j.Logger;

/**
 * 新規登録完了Actionクラス。
 * 
 * @author y_sugasawa
 * @since 2011/06/05
 * 
 */
public class CompleteAction extends AbstractAction {

	/** ログ */
	private static final Logger log = Logger.getLogger(CompleteAction.class
			.getName());

	@Override
	public String execute() throws RsException {

		final User user = (User) getSession("user");
		if (user == null) {
			// throw new Exception("user is null.");
		}
		// TODO ユーザ登録を行う。
		removeSession("user");
		final UserInfo userInfo = new UserInfo();
		userInfo.setUserId("hoge");
		setSession(RsStatics.USER_INFO, userInfo);
		return "regist/complete.jsp";
	}
}
